package com.charlotte.study.gupao.chain.auth.genera;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class MemberService {

    public void login(Member member){
        ValidateHandler validateHandler = new ValidateHandler();
        LoginHandler loginHandler = new LoginHandler();
        AuthHandler authHandler = new AuthHandler();

        loginHandler.setNextHandler(authHandler);
        validateHandler.setNextHandler(loginHandler);
        validateHandler.doHandler(member);
    }
}
